package com.example.patient.dto.resp;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author wxy
 * @Date 2021/1/22 15:02
 * @Version 1.0
 */
@Data
@ApiModel(value = "支付完成返回体")
public class InquiryPayCompletionResp implements Serializable {
    private static final long serialVersionUID = -111073379968028203L;

    @ApiModelProperty(value = "isPay")
    @JSONField(name = "IsPay")
    private Boolean isPay;
    @ApiModelProperty(value = "lType")
    @JSONField(name = "LType")
    private Integer lType;
    @ApiModelProperty(value = "self")
    @JSONField(name = "Self")
    private SelfResp self;
    @ApiModelProperty(value = "payPrice")
    @JSONField(name = "payPrice")
    private BigDecimal payPrice;
    @ApiModelProperty(value = "payTypeName")
    @JSONField(name = "payTypeName")
    private String payTypeName;
    @ApiModelProperty(value = "payTime")
    @JSONField(name = "payTime")
    private Date payTime;
    @ApiModelProperty(value = "orderNO")
    @JSONField(name = "OrderNO")
    private String orderNO;

    @Data
    public static class SelfResp implements Serializable {
        private static final long serialVersionUID = -3795997536654403932L;

        @ApiModelProperty(value = "selfAddress")
        @JSONField(name = "SelfAddress")
        private String selfAddress;
        @ApiModelProperty(value = "selfName")
        @JSONField(name = "SelfName")
        private String selfName;
        @ApiModelProperty(value = "code")
        @JSONField(name = "Code")
        private String code;
    }
}
